package it.asvp.asvp_portal.web.util;

import java.io.FileOutputStream;
import java.io.IOException;


public class FileConverter {

	
	
	public static java.io.File getFileFromEntityFile(it.asvp.asvp_portal.data.entity.domain.File entityFile) throws IOException{
		
		java.io.File file=new java.io.File(entityFile.getName()); 
		FileOutputStream fos = new FileOutputStream(file); 
        fos.write(entityFile.getData());
        fos.close();
       
		return file;
	}
}
